//
//  WDCalendarDateHandler.h
//  Demos
//
//  Created by iMac on 2018/3/2.
//  Copyright © 2018年 iMac. All rights reserved.
//

#import <Foundation/Foundation.h>

@class WDCalendarDayModel;
@interface WDCalendarDateHandler : NSObject

/// 获取单例
+ (instancetype)sharedInstance;

/// 获取日历有几行
- (NSInteger)numsOfRows:(NSDate *)date;

/// 获取当前日历页的所有数据 NSArray<NSDate>
- (NSArray<NSDate *> *)datesOfCurrentCalendarPage:(NSDate *)date;

/// 返回上个月的1号的date
- (NSDate *)dateForLastMonth:(NSDate *)date;

/// 返回下个月的1号的date
- (NSDate *)dateForNextMonth:(NSDate *)date;

/// 通过当前页的日期, 获取上一月,本月,下一月 WDCalendarDayModel 集合数组的 集合
- (NSArray *)dataForCalendar:(NSDate *)currentPageDate;

/// 通过当前页的Date获取当前月所有的WDCalendarDayModel集合
- (NSArray *)daysInPage:(NSDate *)date;
@end
